home *** CD-ROM | disk | FTP | other *** search
/ Over 1,000 Windows 95 Programs / Over 1000 Windows 95 Programs (Microforum) (Disc 2).iso / 1318 / encrypt.s < prev    next >
Text File  |  1993-05-30  |  5KB  |  344 lines

  1. \  ENCRYPT.S
  2. \  Companion table to DECRYPT.S
  3. \  This file will encrypt any disk file, binary or ASCII
  4. \  (turn a readable file into an unreadable one in a controlled manner)
  5.  
  6. \  The encryption routines are designed to prevent casual observers from
  7. \  viewing sensitive data files; they will not prevent a determined
  8. \  code-breaker from eventually decoding the file.
  9.  
  10. \  Notes: Program files and other files with a large number of graphic
  11. \  characters (8-bit non-ASCII) will encrypt larger than the original file
  12. \  because of the way I am tagging high-order characters. On the other
  13. \  hand, ASCII files may encrypt somewhat smaller than the original file
  14. \  because of space band compression.
  15.  
  16. \  USE WITH CAUTION!
  17. \  1. Always back up critical files before encrypting them.
  18. \  2. Don't lose or modify DECRYPT.S. If you want new encrypt/decrypt
  19. \     tables, name them something different, or you won't be able to
  20. \     decrypt earlier files.
  21.  
  22. \09=\01
  23. \08=\02
  24. \07=\03
  25. \06=\04
  26. \05=\05
  27. \04=\06
  28. \0d*01=\07*00*11
  29. \02=\08
  30. \01=\09
  31. \0e=\0e
  32. \4d=\10
  33. \46=\11
  34. \61*31=\12*30*01
  35. \49=\13
  36. \51=\14*20*31
  37. \7e=\15
  38. \47=\16
  39. \52=\17
  40. \53=\18
  41. \3e=\19
  42. \54=\1a*00*11
  43. \40=\1b
  44. \20*31=\1c*30*41
  45. \42=\1d
  46. \6c=\1e*20*31
  47. \0a*11=\1f*10*21
  48. \65*31=\20*30*01
  49. \3b=\21
  50. \62=\22
  51. \4a=\23
  52. \4f=\24
  53. \63=\25
  54. \45=\26
  55. \0d*31=\27*30*01
  56. \48=\28
  57. \3c=\29
  58. \2e*01=\2b*00*11
  59. \61*21=\32*20*31
  60. \6d=\33
  61. \69=\34
  62. \2e*11=\35*10*21
  63. \60=\39
  64. \00=\3a
  65. \38=\3c
  66. \39=\3d
  67. \2e*21=\3e*20*31
  68. \50=\40
  69. \43=\41
  70. \71=\42
  71. \30*11=\43*10*21
  72. \59=\44
  73. \5d=\45
  74. \70=\46
  75. \32=\47
  76. \65*11=\48*10*21
  77. \1b=\49
  78. \6f=\4a
  79. \73=\4b
  80. \1a=\4c
  81. \7f=\4d
  82. \72=\4e
  83. \0a*21=\4f*20*31
  84. \20*51=\51*50*01
  85. \2a\2a\2a\2a=\52
  86. \2a\2a\2a=\56*20*31
  87. \20*41=\59*40*51
  88. \2e*31=\5a*30*41
  89. \1c=\5b
  90. \1d=\5d
  91. \6e=\60*10*21
  92. \4e=\61
  93. \7c=\62
  94. \7a=\63
  95. \41=\64
  96. \5e=\65
  97. \23=\66
  98. \0d*00=\67*01
  99. \6a=\68
  100. \6b=\69
  101. \79=\6a
  102. \3d=\6b
  103. \78=\6c
  104. \7b=\6d
  105. \44=\6e
  106. \58=\6f
  107. \66=\70
  108. \4b=\71
  109. \68=\72
  110. \30*21=\73*20*31
  111. \3a=\74
  112. \2a\2a=\75
  113. \64=\76
  114. \2e*41=\77*40*01
  115. \65*21=\78*20*31
  116. \5a=\79
  117. \24=\7a
  118. \55=\7b
  119. \0b=\7c
  120. \67=\7d
  121. \5c=\7e
  122. \56=\7f
  123. \5f=\80
  124. \3f=\81
  125. \57=\82
  126. \4c=\83
  127. \75=\84
  128. \7d=\85
  129. \25=\86
  130. \0d*11=\87*10*21
  131. \65*00=\88*01
  132. \2e*00=\89*01
  133. \2d=\8a
  134. \77=\8b
  135. \5b=\8c
  136. \76=\8d
  137. \31=\8e
  138. \0a*01=\8f*00*11
  139. \26=\90
  140. \2f=\91
  141.       \20*00=\92*01
  142.      \20=\93
  143. ---=\94
  144. \00*00=\96*01
  145.       \20*01=\97*00*11
  146.       \20*11=\99*10*21
  147.       \20*21=\9a*20*01
  148. \00*01=\9b*00*11
  149. \20*21=\9c*20*31
  150. \00*11=\9d*10*21
  151. --------=\a1
  152. \61*11=\a2*10*21
  153. \30*01=\a3*00*11
  154. \21=\a4
  155. \1f=\a5
  156. \0c=\a6
  157. \0d*21=\a7*20*31
  158. \1e=\a8
  159. \27=\a9
  160. \33=\aa
  161. \22=\ab
  162. -----=\ac
  163. \0f=\ad
  164. \36=\b0
  165. \2a\2a\2a\2a\2a=\b1
  166. \2a=\b2
  167. \28=\b4
  168. \74=\b6*21
  169. \34=\b9
  170. \30*31=\bd*30*01
  171. \0a*31=\bf*30*01
  172. \c6=\c0\11
  173. \c9=\c0\13
  174. \c7=\c0\16
  175. \d3=\c0\18
  176. \d4=\c0\1a
  177. \c0=\c0\1b
  178. \ca=\c0\23
  179. \c8=\c0\28
  180. \cb=\c0\71
  181. \c2=\c1\1d
  182. \ec=\c1\1e
  183. \c5=\c1\26
  184. \ed=\c1\33
  185. \e9=\c1\34
  186. \29=\c2
  187. \ee=\c3\60
  188. \c1=\c3\64
  189. \de=\c3\65
  190. \ea=\c3\68
  191. \eb=\c3\69
  192. \c4=\c3\6e
  193. \d8=\c3\6f
  194. \e8=\c3\72
  195. \00*21=\c4*20*31
  196. \00*31=\c5*30*41
  197. \00*41=\c6*40*01
  198. \00\00\00\00\00\00\00=\c7
  199. \00\00\00\00\00=\c8
  200. \fe=\d0\15
  201. \f1=\d0\42
  202. \f0=\d0\46
  203. \f3=\d0\4b
  204. \ff=\d0\4d
  205. \f2=\d0\4e
  206. \fc=\d0\62
  207. \fa=\d0\63
  208. \f9=\d0\6a
  209. \f8=\d0\6c
  210. \fb=\d1\6d
  211. \f5=\d1\84
  212. \fd=\d1\85
  213. \f7=\d1\8b
  214. \f6=\d1\8d
  215. \f4=\d1\b6
  216. \89=\d2\01
  217. \88=\d2\02
  218. \87=\d2\03
  219. \86=\d2\04
  220. \85=\d2\05
  221. \84=\d2\06
  222. \82=\d2\08
  223. \81=\d2\09
  224. \8e=\d2\0e
  225. \80=\d2\3a
  226. \8d=\d2\67
  227. \9b=\d3\49
  228. \9a=\d3\4c
  229. \9c=\d3\5b
  230. \9d=\d3\5d
  231. \8b=\d3\7c
  232. \8c=\d3\a6
  233. \8f=\d3\ad
  234. \83=\d3\fa
  235. \8a=\d3\fb
  236. \9f=\d4\a5
  237. \9e=\d4\a8
  238. \90=\d4\e0
  239. \91=\d4\e1
  240. \93=\d4\e3
  241. \94=\d4\e4
  242. \95=\d4\e5
  243. \96=\d4\e6
  244. \97=\d4\e7
  245. \98=\d4\e8
  246. \99=\d4\e9
  247. \92=\d4\ea
  248. \37=\d5
  249. \a3=\d6\66
  250. \a4=\d6\7a
  251. \a5=\d6\86
  252. \ad=\d6\8a
  253. \a6=\d6\90
  254. \af=\d6\91
  255. \a1=\d6\a4
  256. \a7=\d6\a9
  257. \a2=\d6\ab
  258. \aa=\d6\b2
  259. \a8=\d6\b4
  260. \a9=\d6\c2
  261. \ab=\d6\eb
  262. \ac=\d6\fe
  263. \be=\d7\19
  264. \bb=\d7\21
  265. \bc=\d7\29
  266. \b8=\d7\3c
  267. \b9=\d7\3d
  268. \b2=\d7\47
  269. \bd=\d7\6b
  270. \ba=\d7\74
  271. \bf=\d7\81
  272. \b1=\d7\8e
  273. \b3=\d7\aa
  274. \b6=\d7\b0
  275. \b4=\d7\b9
  276. \b7=\d7\d5
  277. \65*01=\d8*00*11
  278. \cd=\d9\10
  279. \d1=\d9\14
  280. \d2=\d9\17
  281. \e2=\d9\22
  282. \cf=\d9\24
  283. \d0=\d9\40
  284. \ce=\d9\61
  285. \cc=\d9\83
  286. \b5=\d9\db
  287. \b0=\d9\f3
  288. \e3=\da\25
  289. \e0=\da\39
  290. \d9=\da\44
  291. \dd=\da\45
  292. \e6=\da\70
  293. \e4=\da\76
  294. \da=\da\79
  295. \dc=\da\7e
  296. \e5=\da\88
  297. \db=\da\8c
  298. \35=\db
  299. \20*11=\de*10*21
  300. \10=\e0
  301. \11=\e1
  302. \61*01=\e2*00*11
  303. \13=\e3
  304. \14=\e4
  305. \15=\e5
  306. \16=\e6
  307. \17=\e7
  308. \18=\e8
  309. \19=\e9
  310. \12=\ea
  311. \2b=\eb
  312. \20*01=\ec*00*11
  313. \61*00=\f2*01
  314. \30*00=\f3*01
  315. \03=\fa
  316. \0a*00=\fb*01
  317. \20*00=\fc*01
  318. \2c=\fe
  319. \e1*31=\ff\12*30*01
  320. \a0*31=\ff\1c*30*41
  321. \ae*01=\ff\2b*00*11
  322. \e1*21=\ff\32*20*31
  323. \ae*11=\ff\35*10*21
  324. \ae*21=\ff\3e*20*31
  325. \c3=\ff\41
  326. \ef=\ff\4a
  327. \a0*51=\ff\51*50*01
  328. \a0*41=\ff\59*40*51
  329. \ae*31=\ff\5a*30*41
  330. \ae*41=\ff\77*40*01
  331. \d5=\ff\7b
  332. \e7=\ff\7d
  333. \d6=\ff\7f
  334. \df=\ff\80
  335. \d7=\ff\82
  336. \ae*00=\ff\89*01
  337. \a0*21=\ff\9c*20*31
  338. \e1*11=\ff\a2*10*21
  339. \a0*11=\ff\de*10*21
  340. \e1*01=\ff\e2*00*11
  341. \a0*01=\ff\ec*00*11
  342. \e1*00=\ff\f2*01
  343. \a0*00=\ff\fc*01
  344.